package com.example.xlzx.exception;


import com.example.xlzx.result.ResultCodeEnum;
import lombok.Data;


@Data
public class xlzxException extends RuntimeException{
    private Integer code;
    public xlzxException(Integer code, String message){
        super(message);
        this.code=code;
    }
    public xlzxException(ResultCodeEnum resultCodeEnum){
        super(resultCodeEnum.getMessage());
        this.code=resultCodeEnum.getCode();
    }
}
